package Player
{
	import flash.utils.Dictionary;

	public class DataCenter
	{
		private static var DataStore:Dictionary = new Dictionary();
		private static var count:int;
		public function DataCenter()
		{
		}
		
		public static function Add(_id:int, _data:VisualEntData):void
		{
			DataStore[_id] = _data;
			count++;
		}
		
		public static function Remove(_id:int):void
		{
			delete DataStore[_id];
			count--;
		}
		
		public static function GetData(_id:int):VisualEntData
		{
			return DataStore[_id];
		}
		
		public static function GetCount():int
		{
			return count;
		}
	}
}